<?php

require 'core-application/class.character.php';

$Char = new character;

$chars = $Char -> setData("SELECT * FROM characters") -> getData();

for($i = 0; $i <= count($chars) - 1; $i++) {
	$all_char[] = $chars[$i]['character_name'] . ' ' . $chars[$i]['character_surname'];
}

echo json_encode($all_char);

?>